﻿    using System;
using System.Net.Sockets;

namespace WebSocket
{
    public delegate void OpenEventHandler();
    public delegate void CloseEventHandler();
    public delegate void ErrorEventHandler();
    public delegate void MessageEventHandler(object sender, byte[] values);
    public delegate void ReadyStateChangedHandler(ReadyState state);

    // server side
    public delegate void LogInEventHandler(Socket socket);
    public delegate void LogOutEventHandler(Socket socket);
    public delegate void RejectedEventHandler(Socket socket);
    public delegate void AcceptedEventHandler(Socket socket);
    public delegate bool HandshakeHandler(HandShake handshake);
}
